package com.atguigu.edu.publisher.service.impl;

import com.atguigu.edu.publisher.beans.*;
import com.atguigu.edu.publisher.mapper.TradeStatsMapper;
import com.atguigu.edu.publisher.service.TradeStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TradeStatsServiceImpl implements TradeStatsService {

    @Autowired
    private TradeStatsMapper tradeStatsMapper;

    @Override
    public List<TradeProvinceOrderCt> getTradeProvinceOrderCt(Integer date) {
        return tradeStatsMapper.selectTradeProvinceOrderCt(date);
    }

    @Override
    public List<TradeProvinceUserCt> getTradeProvinceUserCt(Integer date) {
        return tradeStatsMapper.selectTradeProvinceUserCt(date);
    }

    @Override
    public List<TradeProvinceOrderAmount> getTradeProvinceOrderAmount(Integer date) {
        return tradeStatsMapper.selectTradeProvinceOrderAmount(date);
    }

    @Override
    public List<TradeSourceOrderAmount> getTradeSourceOrderAmount(Integer date) {
        return tradeStatsMapper.selectTradeSourceAmount(date);
    }

    @Override
    public List<TradeSourceOrderCt> getTradeSourceOrderCt(Integer date) {
        return tradeStatsMapper.selectTradeSourceOrderCt(date);
    }

    @Override
    public List<TradeSourceUserCt> getTradeSourceUserCt(Integer date) {
        return tradeStatsMapper.selectTradeSourceUserCt(date);
    }

    @Override
    public List<TradeSourceInversionRate> getTradeSourceInversionRate(Integer date) {
        return tradeStatsMapper.selectTradeSourceInversionRate(date);
    }
}
